import api from './request.js'

function login(params) {
	const param = {
		url: '/api/auth/login',
		methods: 'POST',
		data: params,
	}
	return api.request(param)
}
function getIndexList(params) {
	const param = {
		url: '/api/index',
		methods: 'GET',
		data: params,
	}
	return api.request(param)
}

function setMsg(params) {
	const param = {
		url: '/api/goods/comment',
		methods: 'POST',
		data: params,
	}
	return api.request(param)
}

function getUserInfo(params) {
	const param = {
		url: '/api/user',
		methods: 'GET',
		data: params,
	}
	return api.request(param)
}

export default {
	login,
	getIndexList,
	setMsg,
	getUserInfo
}
